<?php
/**
 * Created by PhpStorm.
 * User: ycp
 * Date: 2017/4/11
 * Time: 20:49
 */

namespace Home\Controller;


use Think\Controller;

class ContentController extends HomeController
{
    public function index()
    {
        $content_name = I('get.content_name');
        $data =catGetArticle($content_name);
//        var_dump($content_name);exit();
        $this->assign([
            'data' =>$data,
            'content_name' =>$content_name,
        ]);
        $this->display();
    }

}